package com.ytz.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("goods")
public class GoodsController {

 @SentinelResource(value = "goods")
 @GetMapping("findById")
    public String findById(String id){
        return "商品id"+id;
    }
}
